//
//  HQStyleListView.h
//  MobileiOS
//
//  Created by 郝庆松 on 2018/5/19.
//  Copyright © 2018年 PCITC. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "HQStyleListCell.h"

@class HQStyleListView;

@protocol HQStyleListViewDelegate <NSObject>

-(void)selectItem:(HQStyleListView *)hottopView withInfo:(NSDictionary *)dataInfo withIndexPath:(NSIndexPath*)indexPath;

@end

@interface HQStyleListView : UIView

@property(nonatomic,assign)id<HQStyleListViewDelegate>delegate;

/**
 数据源
 */
@property (strong, nonatomic) NSArray *dataSource;

@property (weak, nonatomic) IBOutlet UICollectionView *collectionView;
/**
 布局
 */
@property (weak, nonatomic) IBOutlet UICollectionViewFlowLayout *layout;

/**
 初始化视图
 
 @return 视图
 */
+ (instancetype)loadTopHotView;

-(void)selectIndexPath:(NSIndexPath *)indexPath;

@end

